﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace CuaHangBanhNgotBeoBeo.Game.ViewModel {
    public abstract class BaseViewModel : INotifyPropertyChanged {
        public BaseViewModel() {

        }

        public bool IsDataLoaded {
            get;
            protected set;
        }

        abstract public void LoadData();

        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(String propertyName) {
            if (null != PropertyChanged) {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
